define(['zepto'], function($) {
	return {
		loadCanvasImg: function() {
			var canvasImg = $('.canvas-img');
			canvasImg.each(function() {
				var canvas = $(this)[0];
				var ctx = canvas.getContext('2d');
				var img = new Image();
				img.src = $(this).data('src');
				img.onload = function() {
					canvas.width = this.width;
					canvas.height = this.height;
					ctx.drawImage(this, 0, 0);
				}
			})
		}
	}
});